package com.array;

public class TwoEqual {

	public static void main(String[] args) {
		String name1 = new String("zhangsan");
		String name2 = name1;
		String name3 = new String("zhangsan");
		boolean re_equal = name1 == name2;
		
		boolean re_equal2 = name1 == name3;
		boolean value_equal = name1.equals(name3);

	}

}
